/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
  title: '慧泽科技',
  tagline: '内部开发文档',
  url: 'http://doc.huizesoft.net/',
  baseUrl: '/',
  onBrokenLinks: 'throw',
  onBrokenMarkdownLinks: 'warn',
  favicon: 'img/favicon.ico',
  organizationName: 'facebook', // Usually your GitHub org/user name.
  projectName: 'docusaurus', // Usually your repo name.
  themeConfig: {
    navbar: {
      title: '慧泽科技',
      logo: {
        alt: '慧泽科技',
        src: 'img/logo.png',
      },
      items: [      
        { to: '/docs/codestandard', label: '编码规范', position: 'left' },       
        { to: '/docs/skill', label: '常用技巧', position: 'left' },        
        { to: '/docs/problem', label: '常见问题', position: 'left' }, 
        { to: '/docs/liruan', label: '框架介绍', position: 'left' }, 
        { to: '/blog', label: '博客', position: 'left' }, 

      ],
    },
    footer: {
      style: 'dark',
      links: [
        // {
        //   title: 'Docs',
        //   items: [
        //     {
        //       label: '文档',
        //       to: '/docs/intro',
        //     },
        //   ],
        // },
        // {
        //   title: 'Community',
        //   items: [

        //   ],
        // },
        // {
        //   title: 'More',
        //   items: [

        //   ],
        // },
      ],
      copyright: `Copyright © ${new Date().getFullYear()} 慧泽科技.`,
    },
    algolia: {
      apiKey: 'ab2fb164e26acc9fe3f684ee97cf82ba',
      indexName: 'hz_doc',

      // Optional: see doc section below
      contextualSearch: true,

      // Optional: see doc section below
      appId: 'PBNU95OP2I',

      // Optional: Algolia search parameters
      searchParameters: {},

      //... other Algolia params
    },
  },
  presets: [
    [
      '@docusaurus/preset-classic',
      {
        docs: {
          sidebarPath: require.resolve('./sidebars.js'),
          // Please change this to your repo.
          editUrl:
          'https://gitee.com/a106_admin/hzdoc/tree/master/huizedoc/',
        },
        blog: {
          showReadingTime: true,
          // Please change this to your repo.
          editUrl:
          'https://gitee.com/a106_admin/hzdoc/tree/master/huizedoc/',
        },
        theme: {
          customCss: require.resolve('./src/css/custom.css'),
        },
      },
    ],
  ],
};
